package com.small.nacos.naming.misc;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
* @Author  zhoujin
* @Date  2022/11/12 10:04
*/
@Component
public class GlobalConfig {

    @Value("${nacos.naming.distro.taskDispatchPeriod:2000}")
    private int taskDispatchPeriod = 2000;

    @Value("${nacos.naming.distro.syncRetryDelay:5000}")
    private long syncRetryDelay = 5000L;

    public int getTaskDispatchPeriod() {
        return taskDispatchPeriod;
    }

    public long getSyncRetryDelay() {
        return syncRetryDelay;
    }
}
